<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="马加"/>
<title>登陆界面</title>
<link href="Css/login.css" rel="stylesheet" type="text/css" />
</head>

<body>

<%
//判断删除的结果
String login = request.getParameter("login");
if(login!=null)
{
		if(login.equals("1")){
			response.sendRedirect("ucenter.jsp");
		}else if(login.equals("0")){
			out.print("<script>");
			out.print("alert('登录失败！请填写正确用户名和密码');");
			out.print("</script>");
		}
}

%>


 <form name="form1" method="post" action="dologin.jsp">
<div id="top"></div>
<div id="login-id">
    <div id="navCenter"><img src="Images/face.png" width="173" height="181" /></div>
</div>
<div id="mainBody">
    <div id="mainBodyCenter">新用户？<a href="register.jsp">点击这里注册!</a></div>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td height="60" align="center" valign="middle"><table width="440" border="0" cellspacing="0" cellpadding="0">
               
                    <tr align="center">
                        <td width="400" height="60">
                            <table width="398" border="0" align="center" cellpadding="0" cellspacing="0" class="leftTable">
                                <tr>
                                    <td height="58" align="center" valign="middle"><table width="390" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="10">&nbsp;</td>
                                                <td width="180" height="45"><table width="178" border="0" cellspacing="0" cellpadding="0" class="left">
                                                        <tr>
                                                            <td width="65" align="right">用户名：</td>
                                                            <td width="11" height="45">
                                                                <input type="text" name="username" id="textfield" class="txt" /></td>
                                                        </tr>
                                                </table></td>
                                                <td width="10">&nbsp;</td>
                                                <td width="178"><table width="180" border="0" cellspacing="0" cellpadding="0" class="right">
                                                        <tr>
                                                            <td width="50" align="right">密码：</td>
                                                            <td width="128" height="45" align="center">
                                                                <input type="password" name="userpass" id="textfield2" class="txt1" /></td>
                                                        </tr>
                                                </table></td>
                                                <td width="10" height="35">&nbsp;</td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td width="40" align="left" valign="middle"><input type="submit" name="button" id="button" value="GO" />
                        </td>
                    </tr>
              
            </table>
        </td>
    </tr>
</table>

<div id="footer">&copy;2015 "非常5+1"组实习结业设计</div>
  </form>
</body>
</html>
